package edu.bit.water.view;

public class BasicResult {
    // 结果码, 0代表成功 1代表失败
    private int code;

    // 返回结果
    private Object rows;

    // 失败信息
    private String message;

    public BasicResult() {}

    public BasicResult(int code, Object rows, String message) {
        this.code = code;
        this.rows = rows;
        this.message = message;
    }


	public int getCode() { return code; }

    public BasicResult setCode(int code) { this.code = code; return this; }

    public Object getRows() { return rows; }

    public void setRows(Object rows) { this.rows = rows; }

	public String getMessage() { return message; }

    public BasicResult setMessage(String message) { this.message = message; return this; }
}
